<?php

class Message extends Item {
	
	public function getFrom() {
		$userRepository = new UserRepository();
		return $userRepository->getOneByUid($this['fk_from_user_id']);
	}
	
	public function getTo() {
		$userRepository = new UserRepository();
		return $userRepository->getOneByUid($this['fk_to_user_id']);
	}
}

?>